package test;

import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;

public class _0521 {
    public static void main1(String[] args) throws IOException {
        try (BufferedReader reader = new BufferedReader(new FileReader("./test.txt"))) {
            String line;
            while ((line = reader.readLine()) != null) {
                System.out.println(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) throws IOException {
        StringBuilder builder = new StringBuilder();
        try (BufferedInputStream bis = new BufferedInputStream(Files.newInputStream(Paths.get("./黄豆粉.jpg")))) {
            int line;
            while ((line = bis.read()) != -1) {
                builder.append(line);
            }
        }
        System.out.println(builder);
    }
}
